﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using Baosight.Platform.Core.UI.Controls;

namespace Baosight.ZNH.ZM.UI
{
    public partial class ZM92 : EFView
    {
        public ZM92()
        {
            InitializeComponent();
        }

        /// <summary>
        /// 采煤数据若没有就不显示
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void grid2_DataLoaded(object sender, EventArgs e)
        {
            if (!grid2.HasItems)
            {
                grub.Visibility = Visibility.Collapsed;
            }
        }

        /// <summary>
        /// 掘进数据若没有就不显示        
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void grid1_DataLoaded(object sender, EventArgs e)
        {
            if (!grid1.HasItems)
            {
                mine.Visibility = Visibility.Collapsed;
            }
        }
    }
}
